home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
decorating_phebes_room.swf
/
scripts
/
frame_6
/
DoAction.as
Wrap
Text File
|
2007-09-26
|
2KB
|
82 lines
function setSelected(clip, frame)
{
var _loc1_ = frame;
var _loc2_ = _root;
_loc2_[clip].gotoAndStop(_loc1_);
switch(clip)
{
case "bed":
_loc2_.data[0] = _loc1_;
break;
case "wall":
_loc2_.data[1] = _loc1_;
break;
case "floor":
_loc2_.data[2] = _loc1_;
break;
case "window":
_loc2_.data[3] = _loc1_;
break;
case "mat":
_loc2_.data[4] = _loc1_;
break;
case "cartoon":
_loc2_.data[5] = _loc1_;
break;
case "light":
_loc2_.data[6] = _loc1_;
break;
case "light0":
_loc2_.data[7] = _loc1_;
break;
case "desk":
_loc2_.data[8] = _loc1_;
break;
case "art":
_loc2_.data[9] = _loc1_;
}
}
stop();
this.data = new Array();
data1 = ["bed","wall","floor","window","mat","cartoon","light","light0","desk","art"];
btn_bed.onPress = function()
{
_root.setSelected("bed",this._currentframe + 1);
};
btn_wall.onPress = function()
{
_root.setSelected("wall",this._currentframe + 1);
};
btn_floor.onPress = function()
{
_root.setSelected("floor",this._currentframe + 1);
};
btn_window.onPress = function()
{
_root.setSelected("window",this._currentframe + 1);
};
btn_mat.onPress = function()
{
_root.setSelected("mat",this._currentframe + 1);
};
btn_cartoon.onPress = function()
{
_root.setSelected("cartoon",this._currentframe + 1);
};
btn_light.onPress = function()
{
_root.setSelected("light",this._currentframe + 1);
};
btn_light0.onPress = function()
{
_root.setSelected("light0",this._currentframe + 1);
};
btn_desk.onPress = function()
{
_root.setSelected("desk",this._currentframe + 1);
};
btn_art.onPress = function()
{
_root.setSelected("art",this._currentframe + 1);
};